<?php
class Controller_Table extends Controller_Template
{
	protected $template = 'tableTemplate';
	public function actionIndex()
	{
		$this->template->title = "COMMERCIAL SPACES AVAILABLE";
		$this->template->content = new View('table/index');
		$content = Model::factory('directory')->getItemByToken('j9i', 'text');
		$this->template->content->spacesText = $content;
		$attachments = Model::factory('directory')->getItemAttachments(520, 'spaces');
		$this->template->content->attachments = $attachments;
		$this->template->content->attachmentPath = "content/directory/attachments/";
	}
}
?>